﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CourseDetails.aspx.cs" Inherits="User_CourseDetails" MasterPageFile="../MasterPage.master" %>

<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="select * from courses" OnSelecting="SqlDataSource1_Selecting"></asp:SqlDataSource>
    <div class="CourseViewDetails">
    <h2 style="text-align: center">Details <asp:Label ID="lblNameDetails" runat="server"></asp:Label></h2>
    <div>
        <table style="width: 100%">
            <tr>
                <td class="auto-style1">Name :</td>
                <td class="auto-style1">
                    <asp:label runat="server" text="IT Course 1" ID="lblName"></asp:label>
                    <asp:HiddenField ID="hf_id" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="columnview1">Teacher :</td>
                <td>
                    <asp:Label ID="lblTeacher" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td class="columnview1">Class Name :</td>
                <td>
                    <asp:label runat="server" text="ABC" ID="lblClassName"></asp:label>
                </td>
            </tr>
            <tr>
                <td class="columnview1">Start date :</td>
                <td>
                    <asp:label runat="server" text="12/12/2014" ID="lblStartDate"></asp:label>
                </td>
            </tr>
            <tr>
                <td class="columnview1">End date :</td>
                <td>
                    <asp:label runat="server" text="1/2/2015" ID="lblEndDate"></asp:label>
                </td>
            </tr>
            <tr>
                <td class="columnview1">Cost :</td>
                <td>
                    <asp:label runat="server" text="3.000.000 vnd" ID="lblCost"></asp:label>
                </td>
            </tr>
            <tr>
                <td class="columnview1">Description :</td>
                <td>
                    <asp:label runat="server" text="abcxyz" ID="lblDescription"></asp:label>
                </td>
            </tr>
        </table>

    </div>
    </div>
    <div>
        <asp:Button ID="btnEditCourse" runat="server" Text="Edit" Width="80px" />
        <asp:Button ID="btnDel" runat="server" Text="Delete" OnClick="Del_Click" Width="80px" />
    </div>

    </asp:Content>
<asp:Content ID="Content1" runat="server" contentplaceholderid="head">
    <style type="text/css">
        .auto-style1 {
            height: 25px;
        }
    </style>
</asp:Content>
